Impementing a different type of dihedral equation

More
5 years 6 months ago #528 by ryangmullen
Hi Perci,

It looks like that dihedral potential has the same functional form as the CHARMM dihedral, so you should be able to model it just fine in Cassandra v1.2 by listing multiple CHARMM dihedrals for the same 4 atoms. Please note, you will need to add the extra dihedrals into the *.mcf directly since mcfgen.py does not support multiple dihedrals.

If you need further help, please upload the *.mcf you have constructed for your molecules.

Ryan
The following user(s) said Thank You: pobhomri

Please Log in to join the conversation.

More
5 years 6 months ago - 5 years 6 months ago #529 by emarin
Hi Perci,

To implement a new dihedral functional form, please do the following:

1) energy_routines.f90, subroutine Compute_Molecule_Dihedral_Energy: This function evaluates the energy for a given dihedral. There is an IF statement that handles the available functional forms. You can add a new functional form by following the templates of the existing forms.

2) input_routines.f90, subroutine Get_Dihedral_Info: This function parses and stores the functional form type and parameters located in the input files. You add the new form here so it is read from the input files.

I think that's it. You will also need to declare the relevant variables in global_variables.f90 (i.e. lines 244-249). Before running a calculation for research, I'd recommend testing your implementation with a simple system (i.e. ideal gas butane) and compute the energy for various dihedral angles. Then check if you get the energies that you'd expect.
Last Edit: 5 years 6 months ago by emarin.
The following user(s) said Thank You: pobhomri

Please Log in to join the conversation.

More
5 years 6 months ago #530 by jshah46545
Definitely, you can implement the dihedral type of your choosing.

Please refer to the following routines:

input_routines.f90 : Get_Dihedral_Info
energy_routines.f90: Compute_Dihedral_Energy and Compute_Molecule_Dihedral_Energy.

Hope that helps!
The following user(s) said Thank You: pobhomri

Please Log in to join the conversation.

  • pobhomri
  • pobhomri's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 6 months ago #531 by pobhomri
Dear all,

thank you so much for your quick replies and for the value informations. I'll keep in touch in case I need more help.

Many thanks again.

Perci Homrich.
Postdoctoral researcher at the University of São Paulo
Contact: This email address is being protected from spambots. You need JavaScript enabled to view it.
The following user(s) said Thank You: emarin

Please Log in to join the conversation.

  • pobhomri
  • pobhomri's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 4 months ago #566 by pobhomri
Dear Rimoldi and Cassandra developers,

I am facing another doubt concerning the usage of different dihedral equations. The force field for the molecule that I am working was developed considering two different dihedral equations. One of them represents the polar part of the molecule and the other one is used for the non-polar part. I am wondering if I can build only one FF file using two different types of dihedral equations for the same molecule. If not, is there a way that I can handle this question?

Thank you so much in advance.

Perci Homrich
Postdoctoral researcher at the University of São Paulo

Please Log in to join the conversation.

More
5 years 4 months ago #568 by jshah46545
Perci,

This is doable. However, you will have to construct the # Dihedral_Info section in the input file manually. The script for generating mcf file currently handles only one type of dihedral type input. My suggestion is to use to script to generate the mcf file using one dihedral type and assign fake parameters to the dihderal angles for which you want to modify the dihedral type. This will generate an mcf file with all the dihderal angles listed and then those of interest can have a different dihderal type with associated parameters.

Jindal
The following user(s) said Thank You: emarin

Please Log in to join the conversation.

Time to create page: 0.124 seconds